package net.jblog.business.facade;

import java.util.List;

import net.jblog.data.model.Category;
import net.jblog.data.model.Post;

public interface PostFacade {

	void save(Post entity);
	void update(Post entity);
	
	Post findById(Long id);
	
	List<Post> findByCriteria(int index, int number, String order, boolean ascending);
	
	List<Post> findLastPost(int number);
	
	List<Post> findAllPosts();
	
	List<Category> findAllCategories();

}
